StupidBeauty
Read times:543Posted at:Sat Mar 31 16:47:53 2012
- no title specified

转载:php 判断是否get传值的参数是否存在

用get方式传递的参数可通过表达式“$_GET["id"]”来访问。

http://blog.sina.com.cn/s/blog_4ea8be380100g8ur.html

亮点:

if(is_array($_GET)&&count($_GET)>0)//先判断是否通过get传值了
{
if(isset($_GET["id"]))//是否存在"id"的参数
{
$id=$_GET["id"];//存在
}
}

Your opinions
Your name:Email:Website url:Opinion content:
- no title specified

HxLauncher: Launch Android applications by voice commands